package org.aphasia4j.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;


/**
 * 
 * @author hillger.t
 */
@Entity
public class Picture extends Model {	
	@Column(nullable = false)
	private String name;
	
	@Lob
	@Basic(fetch = FetchType.LAZY)
	private byte[] image;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public byte[] getImage() {
		return image;
	}

	public void setImage(byte[] image) {
		this.image = image;
	}
}
